<div>
    <ol class="breadcrumb">
        <li> <i class="fa fa-anchor"></i>
            &nbsp;异常报告
        </li>
        <li>首页</li>
    </ol>
    <div class="panel">
        <div class="panel-heading">
            <i class="fa fa-list">&nbsp;&nbsp;异常报告</i>
        </div>
        <form class="search-form" action="__ACTION__" method="get">
            <div class="panel-body search-panel-body">
                <div class="col-xs-1">
                    <a href="__URL__/index/oldtime/30" class="btn btn-warning">&nbsp;&nbsp;前30天&nbsp;</a>
                </div>
                <div class="col-xs-3 search-col retract">
                    <div class="input-group">
                        <span class="input-group-addon">更多选择</span>
                        <input type="text" class="form-control form_month" placeholder="点击选择" name="month"  value="{$_GET['month']}"  data-date-format="yyyy-mm" data-link-format="yyyy-mm">
                    </div>
                </div>
                <button  type="submit" class="btn btn-warning">
                    <i class="fa fa-search"></i>
                    &nbsp;搜索
                </button>
            </div>
        </form>
    </div>
</div>

        <table  class="table table-bordered table-striped table-mcit" >
            <thead>
            <tr>
                <th width="30%">
                    <button class='btn btn-block btn-mcit' type='button'>日期</button>
                </th>
                <th>
                    <button class='btn btn-block btn-mcit' type='button'>在线</button>
                </th>
                <th>
                    <button class='btn btn-block btn-mcit' type='button'>异常</button>
                </th>
                <th>
                    <button class='btn btn-block btn-mcit' type='button'>下线</button>
                </th>
                <th>
                    <button class='btn btn-block btn-mcit' type='button'>邮件发送情况</button>
                </th>
                <th>
                    <button class='btn btn-block btn-mcit' type='button'>操作</button>
                </th>
            </tr>
            </thead>
            <tbody id="DataTableContent">
                <empty name="abnormal">
                    <td colspan="99" style="text-align:center" class="danger"> <strong><i class="fa fa-meh-o"></i>
                        &nbsp;&nbsp;当前条件下没有数据</strong>
                    </td>
                <else />
                    <volist name="abnormal" id="data">
                        <tr align="center">
                            <td>{$data.currentTime}</td>
                            <td>{$data.online} / {$data.total}</td>
                            <td>
                                <a href="__URL__/abnormal/current/{$data.currentTime}">{$data.abnormal} / {$data.total}</a>
                            </td>
                            <td>
                                <a href="__URL__/outline">{$data.outline} / {$data.total}</a>
                            </td>
                            <td>
                                <if condition="$data.type eq 1">
                                    <span style="color: #cc6600">未发送</span>
                                <else />
                                    <span style="color: #009900">已发送</span>
                                </if>
                            </td>
                            <td>
                                <a class="btn btn-info btn-sm" href="__URL__/sendemail/id/{$data.id}">
                                    <i class="fa fa-edit"></i>
                                    &nbsp;邮件发送
                                </a>
                                <a class="btn btn-success btn-sm" href="__URL__/senddetail/currentTime/{$data.currentTime}">
                                <i class="fa fa-eye"></i>
                                &nbsp;发送清单
                            </a>
                            </td>
                        </tr>
                    </volist>
                </empty>
            <tr>
                <td colspan="99" style="text-align:center">
                    <ul class="pagination">{$pageView}</ul>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<import file="js.jquery#chained" />
<import type='css' file="css.datetimepicker" />
<import file="js.bootstrap-datetimepicker#min" />
<import file="js.bootstrap-datetimepicker#zh-CN" />
<import file="js.maskedinput" />
<script type="text/javascript">
    $(document).ready(function () {
        $("#location-s").chained("#location-f");
        $("#location-t").chained("#location-s");

        $(".form_month").datetimepicker({
            language: 'zh-CN',
            autoclose: true,
            startView:'year',
            minView: 'year',
            todayBtn: false,
            viewSelect: 'year',
            pickerPosition: "bottom-left"
        });
    })
</script>